<?php
declare(strict_types=1);

namespace App\HTTP;

use App\App;
use App\GlobalData;
use App\Runtime;
use Swoole\Thread;

class RequestHandler
{
    public function handle(\Swoole\Http\Request $request, \Swoole\Http\Response $response): void
    {
        $response->end(json_encode(GlobalData::get('wait_cons')->toArray()));
    }
}